Increment page reference count for every host/device
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 21 Dec 2005 17:25:34 +0000 (18:25 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 21 Dec 2005 17:25:34 +0000 (18:25 +0100)
commitd9af6ba2e09354f72a9b99d47e06ea0169ce073b
tree3fd026d8ec931711090d38f22812c8e275310b13
parentf1e0d841481a3401bc54e15781e5c75838d3c651
Increment page reference count for every host/device
mapping created via a grant reference, rather than one
increment for all uses of a single grant reference.
This avoids a nasty situation in put_page_from_l1e()
where we cannot reliably determine whether a mapping was
created via a grant reference and so we must always
decrement the mapped page's reference count.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/grant_table.c